<!-- bankcard.html -->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>银行卡</title>
  <link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
</head>
<body>
  <div class="container">
    <header class="header">
      <button class="back-btn" onclick="window.history.back()">←</button>
      <h2>银行卡</h2>
    </header>
    
    <div class="section">
      <h3>我的银行卡</h3>
      <div class="card-list">
        <div class="card-item">
          <div class="card-icon">🏦</div>
          <div class="card-info">
            <h4>中国工商银行</h4>
            <p>储蓄卡 **** **** **** 1234</p>
          </div>
          <div class="card-balance">余额: 8,500.00元</div>
        </div>
        <div class="card-item">
          <div class="card-icon">🏦</div>
          <div class="card-info">
            <h4>中国建设银行</h4>
            <p>信用卡 **** **** **** 5678</p>
          </div>
          <div class="card-balance">额度: 15,000.00元</div>
        </div>
      </div>
      
      <div style="margin-top: 20px;">
        <button onclick="addBankCard()" style="width: 100%;">添加银行卡</button>
      </div>
    </div>
  </div>
  
  <script>
    function addBankCard() {
      alert('正在打开添加银行卡页面...');
    }
  </script>
  
  <style>
    .card-list {
      margin-top: 10px;
    }
    
    .card-item {
      display: flex;
      align-items: center;
      padding: 15px 0;
      border-bottom: 1px solid var(--border-color);
    }
    
    .card-item:last-child {
      border-bottom: none;
    }
    
    .card-icon {
      font-size: 24px;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 15px;
      background: #f0f0f0;
      border-radius: 50%;
    }
    
    .card-info h4 {
      font-size: 16px;
      margin-bottom: 5px;
    }
    
    .card-info p {
      font-size: 12px;
      color: var(--text-secondary);
    }
    
    .card-balance {
      margin-left: auto;
      font-weight: 500;
      color: var(--primary-color);
    }
  </style>
</body>
</html>